//
//  BaseNavigationBar.m
//  GuiJuWo
//
//  Created by chenguibang on 16/3/24.
//  Copyright © 2016年 chenguibang. All rights reserved.
//

#import "BaseNavigationBar.h"

@implementation BaseNavigationBar


- (instancetype)init
{
    self = [super init];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(HomeSearchBar *)homeSearchBar{
    if (!_homeSearchBar) {
        _homeSearchBar = [[HomeSearchBar alloc]init];
        [self addSubview:_homeSearchBar];
//        _homeSearchBar.backgroundColor = UIColorWithRandom;
        _homeSearchBar.sd_layout.topSpaceToView(self,20).leftEqualToView(self).rightEqualToView(self).bottomEqualToView(self);
    }
    return _homeSearchBar;
}

-(NormalNavBar *)normalNavBar{
    if (!_normalNavBar) {
        _normalNavBar = [[NormalNavBar alloc]init];
        [self addSubview:_normalNavBar];
//        _homeSearchBar.backgroundColor = UIColorWithRandom;
        _normalNavBar.sd_layout.topSpaceToView(self,20).leftEqualToView(self).rightEqualToView(self).bottomEqualToView(self);
    }
    return _normalNavBar;
}


@end
